package com.t.bricks.bussiness.model.ocr;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * OCR提取配置信息类
 * 
 * @author coyun@qq.com
 *
 */

@ApiModel(value="OCR配置信息对象",description="OCR提取文字时使用的配置信息")
public class ConditionOcr  implements Serializable{

	private static final long serialVersionUID = 1L;
	/**
	 * 移除所有线
	 */
	@ApiModelProperty(value="移除线条",name="iRemoveLines",example="1") 
	private Integer iRemoveLines;
	/**
	 * 开启噪声滤波器
	 */
	@ApiModelProperty(value="开启噪声滤波器",name="iNoiseFilter",example="1") 
	private Integer iNoiseFilter;
	/**
	 * 开启图像倾斜修复
	 */
	@ApiModelProperty(value="开启图像倾斜修复",name="iSkewAngle",example="1") 
	private Integer iSkewAngle;
	
	/**
	 * 内容格式化，默认去掉格式
	 */
	@ApiModelProperty(value="内容格式化，默认去掉格式",name="iFmt",example="1") 
	private Integer iFmt;
	
	/**
	 * 图像缩放 "0.25", "0.5", "1.0", "1.5", "2.0", "2.5", "4.0"
	 */
	@ApiModelProperty(value="图像缩放,可选值 \"0\", \"0.25\", \"0.5\", \"1.0\", \"1.5\", \"2.0\", \"2.5\", \"4.0\"",name="sScale",example="1.0") 
	private String sScale;
	
	/**
	 * 提取语言 简体中文:zh ,英语:en
	 */
	@ApiModelProperty(value="默认语言,可选值 简体中文:zh ,英语:en",name="lang",example="zh") 
	private String sLang;
	
	/**
	 * 图片内容
	 * com.t.bricks.utils.function.file.ZipUtil.zipStr()
	 */
	@ApiModelProperty(value="需要提取文字的图片字符串，读取bytes再用java.util.Base64.getEncoder().encodeToString(bytes)转换成字符串，且已经过压缩方法压缩(com.t.bricks.utils.function.file.ZipUtil.zipStr())",name="content",required=true,example="") 
	private String sContent;


	public Integer getiRemoveLines() {
		return iRemoveLines;
	}

	public void setiRemoveLines(Integer iRemoveLines) {
		this.iRemoveLines = iRemoveLines;
	}

	public Integer getiNoiseFilter() {
		return iNoiseFilter;
	}

	public void setiNoiseFilter(Integer iNoiseFilter) {
		this.iNoiseFilter = iNoiseFilter;
	}

	public Integer getiSkewAngle() {
		return iSkewAngle;
	}

	public void setiSkewAngle(Integer iSkewAngle) {
		this.iSkewAngle = iSkewAngle;
	}

	public String getsScale() {
		return sScale;
	}

	public void setsScale(String sScale) {
		this.sScale = sScale;
	}

	public Integer getiFmt() {
		return iFmt;
	}

	public void setiFmt(Integer iFmt) {
		this.iFmt = iFmt;
	}

	public String getsLang() {
		return sLang;
	}

	public void setsLang(String sLang) {
		this.sLang = sLang;
	}

	public String getsContent() {
		return sContent;
	}

	public void setsContent(String sContent) {
		this.sContent = sContent;
	}



}
